﻿//------------------------------------------------------------------------------
// 创建标识: Copyright (C) 2008 Socansoft.com 版权所有
// 创建描述: SocanCode代码生成器自动创建于 2008-8-22 14:02:59
//
// 功能描述: 
//
// 修改标识: 
// 修改描述: 
//------------------------------------------------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

public partial class Controls_SHANGPINModelControl : System.Web.UI.UserControl
{
    public DataSet ds;
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    public void Bind(string spdmm)
    {
        ds = new BLL.SHANGPIN().GetFJSXVALUE(spdmm);
        if (ds.Tables[0].Rows.Count > 0)
        {
            lbl_name1.Text = ds.Tables[0].Rows[0][0].ToString();
            lbl_name2.Text = ds.Tables[0].Rows[0][1].ToString();
            lbl_name3.Text = ds.Tables[0].Rows[0][2].ToString();
            lbl_name4.Text = ds.Tables[0].Rows[0][3].ToString();
            lbl_name5.Text = ds.Tables[0].Rows[0][4].ToString();
            lbl_name6.Text = ds.Tables[0].Rows[0][5].ToString();
        }
        if (ds.Tables[1].Rows.Count > 0)
        {
            lbl_value1.Text=ds.Tables[1].Rows[0][0].ToString();
            lbl_value2.Text=ds.Tables[1].Rows[0][1].ToString();
            lbl_value3.Text=ds.Tables[1].Rows[0][2].ToString();
            lbl_value4.Text=ds.Tables[1].Rows[0][3].ToString();
            lbl_value5.Text=ds.Tables[1].Rows[0][4].ToString();
            lbl_value6.Text=ds.Tables[1].Rows[0][5].ToString();
            lbl_value7.Text=ds.Tables[1].Rows[0][6].ToString();
            lbl_value8.Text=ds.Tables[1].Rows[0][7].ToString();
            lbl_value9.Text=ds.Tables[1].Rows[0][8].ToString();
            lbl_value10.Text=ds.Tables[1].Rows[0][9].ToString();
        }
    }

}
